package com.xbongbong.pro.form.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/5/7 10:05
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class FormUpdateNameDTO extends BaseDTO {

    private static final long serialVersionUID = -3728089139326332822L;
    @NotNull(message = "{dto.msg.formUpdateName.menuId.NotNull}")
    private Long menuId;

    @NotNull(message = "{dto.msg.formUpdateName.formId.NotNull}")
    private Long formId;

    @Length(max = 50, message = "{dto.msg.formUpdateName.name.Length}")
    private String name;

    @Length(max = 50, message = "{dto.msg.formUpdateName.name.Length}")
    private String nameEn;

    private Integer businessType;

}
